home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-06-15 | 5.5 KB | 171 lines | [TEXT/MPS ] |
- SampleAgent-MIB DEFINITIONS ::= BEGIN
-
- IMPORTS
- TRAP-TYPE
- FROM RFC-1215
- Counter
- FROM RFC1155-SMI
- enterprises, OBJECT-TYPE
- FROM RFC-1212
- apple, experimental
- FROM Apple-Macintosh-System-MIB;
-
- -- This MIB module uses the extended OBJECT-TYPE macro
-
- -- SampleAgent MIB
-
- sample OBJECT IDENTIFIER ::= { apple experimental 1 }
-
- direct OBJECT IDENTIFIER ::= { sample 1 }
- indirect OBJECT IDENTIFIER ::= { sample 2 }
-
- -- The Direct Group
-
- dirInt OBJECT-TYPE
- SYNTAX INTEGER
- ACCESS read-write
- STATUS mandatory
- DESCRIPTION
- "A Direct Read/Write integer. A direct variable
- is one in which the variable object accesses
- the variable data directly."
- ::= { direct 1 }
-
- -- The Indirect Group
-
- IndIntRW OBJECT-TYPE
- SYNTAX INTEGER
- ACCESS read-write
- STATUS mandatory
- DESCRIPTION
- "An indirect read/write integer. An indirect variable
- is one in which the variable object accesses the
- variable data indirectly through a function in the
- agent."
- ::= { indirect 1 }
-
- IndIntR OBJECT-TYPE
- SYNTAX INTEGER
- ACCESS read-only
- STATUS mandatory
- DESCRIPTION
- "An Indirect read-only integer. An indirect variable
- is one in which the variable object accesses the
- variable data indirectly through a function in the
- agent."
- ::= { indirect 2 }
-
- table1 OBJECT-TYPE
- SYNTAX SEQUENCE OF Table1Entry
- ACCESS not-accessible
- STATUS mandatory
- DESCRIPTION
- "A table consisting of 2 columns, an integer
- and a string. Rows are added or deleted by
- setting the integer column."
- ::= { indirect 3 }
-
- table1Entry OBJECT-TYPE
- SYNTAX Table1Entry
- ACCESS not-accessible
- STATUS mandatory
- DESCRIPTION
- "Each entry contains one row of table 1. The
- index is not a column of the table and can range
- from 1 to 20."
- INDEX { INTEGER }
- ::= { table1 1 }
-
- Table1Entry ::= SEQUENCE {
- t1Int INTEGER,
- t1Str OCTET STRING
- }
-
- t1Int OBJECT-TYPE
- SYNTAX INTEGER
- ACCESS read-write
- STATUS mandatory
- DESCRIPTION
- "The integer column of table1. This column is
- used to add and delete rows. Setting a value of
- zero deletes the row, and setting a value from
- 1 to 999 adds the row. A value greater than 999
- is invalid."
- ::= { table1Entry 1 }
-
- t1Str OBJECT-TYPE
- SYNTAX OCTET STRING
- ACCESS read-write
- STATUS mandatory
- DESCRIPTION
- "The String column of table 1. A value must be
- set in this column when adding a row to the table."
- ::= { table1Entry 2 }
-
- table2 OBJECT-TYPE
- SYNTAX SEQUENCE OF Table2Entry
- ACCESS not-accessible
- STATUS mandatory
- DESCRIPTION
- "A two index table in which the indexes are columns
- in the table. The valid column is used to create
- and delete rows."
- ::= { indirect 4 }
-
- table2Entry OBJECT-TYPE
- SYNTAX Table2Entry
- ACCESS not-accessible
- STATUS mandatory
- DESCRIPTION
- "Each entry contains one row of table 2. The indexes
- can each range from 1 to 10."
- INDEX { t2Index1, t2Index2 }
- ::= { table2 1 }
-
- Table2Entry ::= SEQUENCE {
- t2Index1 INTEGER,
- t2Index2 INTEGER,
- t2Str OCTET STRING,
- t2Valid INTEGER
- }
-
- t2Index1 OBJECT-TYPE
- SYNTAX INTEGER
- ACCESS read-write
- STATUS mandatory
- DESCRIPTION
- "The first Index column of table 2. The value
- can range from 1 to 10."
- ::= { table2Entry 1 }
-
- t2Index2 OBJECT-TYPE
- SYNTAX INTEGER
- ACCESS read-write
- STATUS mandatory
- DESCRIPTION
- "The second Index column of table 2. The value
- can range from 1 to 10."
- ::= { table2Entry 2 }
-
- t2Str OBJECT-TYPE
- SYNTAX OCTET STRING
- ACCESS read-write
- STATUS mandatory
- DESCRIPTION
- "The String column of table 2. If not set when adding
- a row, a null string will be set by default."
- ::= { table2Entry 3 }
-
- t2Valid OBJECT-TYPE
- SYNTAX INTEGER
- ACCESS read-write
- STATUS mandatory
- DESCRIPTION
- "The valid column of table 2. Setting it to zero
- deletes the row, and setting it to non-zero
- adds the row."
- ::= { table2Entry 4 }
-
- END
-
-